#
#  Makefile
#

#
#  RTEMS_MAKEFILE_PATH is typically set in an environment variable
#

PGM=${ARCH}/wrapper.exe

# optional managers required
MANAGERS=all

# C source names
CSRCS = init.c wrap_rtems_task_create.c trace_log.c trace_trigger.c wrap_rtems_clock_set.c wrap_rtems_task_delete.c wrap_rtems_task_ident.c
COBJS = $(CSRCS:%.c=${ARCH}/%.o)
# Could put long list of arguments in FILE and use that with ld
LINK_LIBS = -Wl,--wrap -Wl,rtems_task_create -Wl,--wrap -Wl,rtems_clock_set -Wl,--wrap -Wl,rtems_task_delete -Wl,--wrap -Wl,rtems_task_ident

include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
include $(RTEMS_CUSTOM)
include $(PROJECT_ROOT)/make/leaf.cfg

OBJS= $(COBJS) 

all:    ${ARCH} $(PGM)

$(PGM): $(OBJS)
	$(make-exe)
